import Vue from 'vue';
import Router from 'vue-router';
import Index from '../views/index.vue';
import Modules from '../views/modules.vue';
import dnSalesOrderList from "../views/dnSalesOrder/dnSalesOrderList";
import dnSalesOrderDetail from "../views/dnSalesOrder/dnSalesOrderDetail";
import ttSalesOrderList from "../views/ttSalesOrder/ttSalesOrderList";
import ttSalesOrderDetail from "../views/ttSalesOrder/ttSalesOrderDetail";
import dnStockQuery from "../views/dnStockQuery/dnStockQuery";
import ttStockQuery from "../views/ttStockQuery/ttStockQuery";
import dnDailyShipmentList from "../views/dnDailyShipment/dnDailyShipmentList";
import dnPickDetail from "../views/dnDailyShipment/dnPickDetail";
import ttDailyShipmentList from "../views/ttDailShipment/ttDailyShipmentList";
import ttPickDetail from "../views/ttDailShipment/ttPickDetail";
import dnSalesOutOrder from "../views/dnSalesOutOrder/dnSalesOutOrder";
import ttSalesOutOrder from "../views/ttSalesOutOrder/ttSalesOutOrder";

Vue.use(Router)

export default new Router({
  // base: '/JDL/',
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/modules',
      name: 'modules',
      component: Modules
    },
    {
      path: '/dnSalesOrderList',
      name: 'dnSalesOrderList',
      component: dnSalesOrderList,
    },
    {
      path: '/dnSalesOrderDetail/:id',
      name: 'dnSalesOrderDetail',
      component: dnSalesOrderDetail,
    },
    {
      path: '/ttSalesOrderList',
      name: 'ttSalesOrderList',
      component: ttSalesOrderList,
    },
    {
      path: '/ttSalesOrderDetail/:id',
      name: 'ttSalesOrderDetail',
      component: ttSalesOrderDetail,
    },
    {
      path: '/dnStockQuery',
      name: 'dnStockQuery',
      component: dnStockQuery,
    },
    {
      path: '/ttStockQuery',
      name: 'ttStockQuery',
      component: ttStockQuery,
    },
    {
      path: '/dnDailyShipmentList',
      name: 'dnDailyShipmentList',
      component: dnDailyShipmentList,
    },
    {
      path: '/dnPickDetail/:seorderfbillno',
      name: 'dnPickDetail',
      component: dnPickDetail,
    },
    {
      path: '/ttDailyShipmentList',
      name: 'ttDailyShipmentList',
      component: ttDailyShipmentList,
    },
    {
      path: '/ttPickDetail/:seorderfbillno',
      name: 'ttPickDetail',
      component: ttPickDetail,
    },
    {
      path: '/dnSalesOutOrder',
      name: 'dnSalesOutOrder',
      component: dnSalesOutOrder,
    },
    {
      path: '/ttSalesOutOrder',
      name: 'ttSalesOutOrder',
      component: ttSalesOutOrder,
    },
  ]
})
